import { JSONFilePreset } from 'lowdb/node'

// 连接模拟数据库,获取数据
const db = await JSONFilePreset('database/lowDB/db.json',{})


// 获取并导出库表信息
export const { users,userLoginStatus,roleTypes,recentPlans,taskList,thingsModelList,thingBranchModelList,listOfItems,aiConversion} = db.data
export default db

